﻿<!DOCTYPE html>
<!--管线打开作业安全许可证审批-->
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>

    <script src="../../static/js/Mock/JobLicenseApp_wanglr.js"></script>
    <script src="../../static/js/Resource/JobLicenseApp_wanglr.js"></script>
    <style>
        body {
            padding-bottom: 10px;
        }

        .toptitle label {
            margin-left: 20px;
        }

        .align_left {
            text-align: left;
        }

        table {
            width: 100%;
            border-top: 1px solid;
            border-left: 1px solid;
            text-align: center;
            /*border-right: none;*/
        }

            table td {
                border-right: 1px solid;
                border-bottom: 1px solid;
                /*height:38px;*/
                padding: 10px;
            }
    </style>

</head>
<body>
    
<div id="app" v-cloak>   

        <div style="width:100%;text-align:center ">
            <label style="font-weight:bold">上锁挂签清单</label>
        </div>
        <div style="width:100%;text-align:right" class="toptitle">
            <label>{{LockedCheck.ReportTime+mark.m}}{{Form.ReportTime}}</label>
            <label>Q/G11-018-R01</label>
            <label> {{LockedCheck.SignNumber+mark.m}} {{Form.SignNumber}}</label>
        </div>
        <el-form :model="Form" status-icon style="margin-top:5px;width:100%" :rules="rules" ref="ruleForm">
            <table cellpadding="0" cellspacing="0" style="">
                <tr>
                    <td width="20%">{{LockedCheck.TerritorialDepartment}}</td>
                    <td width="30%">{{Form.TerritorialDepartment}}</td>
                    <td width="20%">{{LockedCheck.OperatingUnit}}</td>
                    <td width="30%">{{Form.OperatingUnit}}</td>
                </tr>
                <tr>
                    <td>{{LockedCheck.WorkingArea}}</td>
                    <td>{{Form.WorkingArea}}</td>
                    <td>{{LockedCheck.WorkingTime}}</td>
                    <td>{{Form.WorkingTime}}</td>
                </tr>
                <tr>
                    <td>{{LockedCheck.WorkContent}}</td>
                    <td colspan="3">{{Form.WorkContent}}</td>
                </tr>
                <tr>
                    <td>{{LockedCheck.IsolationSystem}}</td>
                    <td colspan="3">{{Form.IsolationSystem}}</td>
                </tr>
            </table>
            <table cellpadding="0" cellspacing="0" style="border-top:none;">
                <tr>
                    <td width="20%">{{LockedCheck.HazardousEnergy}}</td>
                    <td width="20%">{{LockedCheck.Harm}}</td>
                    <td width="20%">{{LockedCheck.IsolationMethod}}</td>
                    <td width="20%">{{LockedCheck.IsolationPoint}}</td>
                    <td width="20%">{{LockedCheck.LockedSigner}}</td>
                </tr>
                <tr v-for="(v,i) in Form.InputTable">
                    <td>{{v.HazardousEnergy}}</td>
                    <td>{{v.Harm}}</td>
                    <td>{{v.IsolationMethod}}</td>
                    <td>{{v.IsolationPoint}}</td>
                    <td>{{v.LockedSigner}}</td>
                </tr>
                <tr>
                    <td> {{LockedCheck.IdentifyPeople}}</td>
                    <td colspan="4">
                        <span style="width:50%;text-align:center;float:left;">{{Form.IdentifyPeople}}</span>
                        <span style="width:50%;text-align:center;float:left;">{{Form.IdentifyPeopleTime}}</span>
                    </td>
                </tr>
                <tr>
                    <td> {{LockedCheck.Approver}}</td>
                    <td colspan="4">
                        <span style="width:50%;text-align:center;float:left;"> {{Form.Approver}}</span>
                        <span style="width:50%;text-align:center;float:left;">{{Form.ApproverTime}}</span>
                    </td>
                </tr>
            </table>
            <el-row>
                <el-form-item style="text-align:center; padding-top:5px">
                    <el-button type="primary" @click="parent.ListItem.dialogVisible=false">{{col.btnBack}}</el-button>
                </el-form-item>
            </el-row>
        </el-form>
    </div>
    <script type="text/javascript">

        app = new Vue({
            el: '#app',
            data: function () {
                return {
                    id: '123',
                    DialogTitle: '相关表格',
                    ListItem: ListItem,
                    Form: {
                        ReportTime: '车间缩写+年月 + 三位序号',//填报时间
                        SignNumber: '',//编号
                        TerritorialDepartment: '',//属地部门
                        OperatingUnit: '',//作业单位
                        WorkingArea: '',//作业区域
                        WorkingTime: '',//作业时间
                        WorkContent: '',//作业内容
                        IsolationSystem: '',//隔离系统（设备）
                        InputTable: [],
                        IdentifyPeople: '',//辨识人
                        Approver: '',//审批人
                    },
                    rules: {},
                }
            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
                getData: function () {
                    getData(this, '/api/PipelineOpenJob/getInputTableMock?id=123');
                },
            },
            mounted: function () {
                this.getData();
            }
        });
    </script>

</body>
</html>